package com.lingshu.app.database.bean;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

/**
 * @author 于定金
 * @version 1.0
 * @Date 2024/1/15 13:31
 * @Description
 */
@Entity(tableName = "messages")
public class MessageBean {
    @PrimaryKey(autoGenerate = true)
    private Integer id;
    private Integer type;
    private Long registerId;
    private String content;
    private Boolean isRead;
    private Long create;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getRegisterId() {
        return registerId;
    }

    public void setRegisterId(Long registerId) {
        this.registerId = registerId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getRead() {
        return isRead;
    }

    public void setRead(Boolean read) {
        isRead = read;
    }

    public Long getCreate() {
        return create;
    }

    public void setCreate(Long create) {
        this.create = create;
    }

    public MessageBean(){
    }

    @Ignore
    public MessageBean(Integer type, Long registerId, String content, Boolean isRead, Long create) {
        this.type = type;
        this.registerId = registerId;
        this.content = content;
        this.isRead = isRead;
        this.create = create;
    }

    @Override
    public String toString() {
        return "MessageBean{" +
                "id=" + id +
                ", type=" + type +
                ", registerId=" + registerId +
                ", content='" + content + '\'' +
                ", isRead=" + isRead +
                ", create=" + create +
                '}';
    }
}
